//
//  ConfirmPwdCell.m
//  Estate
//
//  Created by heyong on 16/6/23.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "ConfirmPwdCell.h"

@implementation ConfirmPwdCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle=UITableViewCellSelectionStyleNone;
    self.title.textColor=[UIColor colorWithRed:0.44 green:0.45 blue:0.45 alpha:1.00];
    self.conPwd.textColor=[UIColor colorWithRed:0.44 green:0.45 blue:0.45 alpha:1.00];
    self.isShow.transform=CGAffineTransformMakeScale(0.75, 0.75);
    self.title.font=[UIFont systemFontOfSize:16*BIZ];
    self.conPwd.font=[UIFont systemFontOfSize:16*BIZ];

    self.conPwd.placeholder=@"请输入密码";
    //设置密文
    self.conPwd.secureTextEntry=YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

- (IBAction)editBegin:(UITextField *)sender {
    if(self.editDidBeginBlock) {
        self.editDidBeginBlock(sender);
    }
}

- (IBAction)editEnd:(UITextField *)sender {
    if(self.editDidEndBlock){
        self.editDidEndBlock(sender.text);
    }
}

- (IBAction)editChange:(UITextField *)sender {
    if(self.textValueChangedBlock){
        self.textValueChangedBlock(sender.text);
    }
}

- (IBAction)switchChange:(UISwitch *)sender {
    if(self.sValueChangeBlock){
        self.sValueChangeBlock(sender);
    }
}
@end
